package com.lzj.entity;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2021/12/7
 */
public class OrderData {
    private int id;
    private String url;//图片url
    private String name;//商品名字
    private double price;//商品价格
    private String specification;//商品规格
    private int count;//购买数量
    private double totalPrice;//单种商品总价
    private int orderId;//所属订单id
    private int userId;//所属用户

    public OrderData() {
    }

    public OrderData(String url, String name, double price, String specification, int count, double totalPrice, int orderId, int userId) {
        this.url = url;
        this.name = name;
        this.price = price;
        this.specification = specification;
        this.count = count;
        this.totalPrice = totalPrice;
        this.orderId = orderId;
        this.userId = userId;
    }

    public OrderData(int id, String url, String name, double price, String specification, int count, double totalPrice, int orderId, int userId) {
        this.id = id;
        this.url = url;
        this.name = name;
        this.price = price;
        this.specification = specification;
        this.count = count;
        this.totalPrice = totalPrice;
        this.orderId = orderId;
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "OrderData{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", specification='" + specification + '\'' +
                ", count=" + count +
                ", totalPrice=" + totalPrice +
                ", orderId=" + orderId +
                ", userId=" + userId +
                '}';
    }
}
